package helloWorld.musicplayer;

import java.util.Vector;

public class Mp3Test {
	public static void main(String[] args) throws InterruptedException {
		Mp3Scraper scraper = new Mp3Scraper();	
		Vector<String> playlist = scraper.getMp3List( artist, album );
		Mp3Player player = null;
		
		if( playlist != null ) {
			player = new Mp3Player();
			player.setPlayList(playlist);
			player.playSong(0);
			Thread.sleep( 2000 );
			player.stop();
			player.playSong(1);
			Thread.sleep( 2000 );
			player.stop();
		}
		else {
			System.out.println("Empty Playlist!");
		}
	}
	private final static String artist = "The Offspring";
	private final static String album = "Americana";
}
